//
// Created by 28365 on 2025/3/5.
//

#include "../include/config/handler/event/UpdateCompleteEvent.h"

int UpdateCompleteEvent::getErrorVersion() const {
    return error_version;
}

const list<UpdateError> &UpdateCompleteEvent::getErrorList() const {
    return errorList;
}

int UpdateCompleteEvent::getUpdateCount() const {
    return updateCount;
}

bool UpdateCompleteEvent::hasError() const {
    return !errorList.empty();
}

UpdateCompleteEvent::UpdateCompleteEvent(int errorVersion, const list<UpdateError> &errorList, int updateCount)
        : error_version(errorVersion), errorList(errorList), updateCount(updateCount) {}
